﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TA.DotNetUtils;
using TA.JSON;

namespace TA.Turbo.Controls
{
	public class NodeTemplateCollection : VList<NodeTemplate>, IJsonSerializable
	{
		#region PUBLIC
		#region INIT
		public NodeTemplateCollection()
		{
		}
		#endregion
		#region EVENTS
		#endregion
		#region PROPS
		#endregion
		#region METHODS
		#endregion
		#endregion
		#region INTERNAL
		#region CONST/STATIC
		#endregion
		#region VARS
		#endregion
		#region PROPS
		#endregion
		#region METHODS
		#region INIT
		#endregion
		#region DATA
		#endregion
		#region HANDLERS
		#endregion
		#endregion
		#endregion


		#region IJsonSerializable Members

		public bool IsDirty
		{
			get
			{
				return this.Count > 0;
			}
		}

		public void Serialize(JsonWriter jw)
		{
			this.SerializeArray(jw);
		}
		public void SerializeContents(JsonWriter jw)
		{
			foreach (NodeTemplate t in this)
				t.Serialize(jw);
		}

		#endregion
	}
}
